﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using JM.JCY.BusinessEntity;
using JM.JCY.Proxy;
using System.Data;

namespace JM.JCY.SharePointComponent.StaffContact.StaffContactHome
{
    public partial class StaffContactHomeUserControl : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                using (UserManagementProxy proxy = new UserManagementProxy())
                {
                    var dt = proxy.GetUserContactForHome(string.Empty, 10);
                    this.gvStaffContact.DataSource = dt;
                    this.gvStaffContact.DataBind();
                }
            }

        }
    }
}
